﻿using de.wolfmarco.pas.Shared.MessageBoxes;
using System;

namespace de.wolfmarco.pas.SoftwareDirectory.Database
{
    public class SoftwareDirectoryDatabase
    {
        public SoftwareDirectoryDatabase()
        {
            using (SoftwareDirectoryDbContext db = new SoftwareDirectoryDbContext())
            {
                try
                {
                    //db.Database.CreateIfNotExists();

                    Test test = new Test();
                    test.AmountOfMoney = 100;
                    test.Id = Guid.NewGuid();

                    db.TestList.Add(test);
                    db.SaveChanges();
                }
                catch (Exception exc)
                {
                    PASMessageBox.ShowException(exc);
                }
            }
        }
    }
}
